package cn.hxzy.common;

import cn.hxzy.entity.DriverFace;
import com.aliyun.ocr20191230.Client;
import com.aliyun.ocr20191230.models.RecognizeDriverLicenseRequest;
import com.aliyun.ocr20191230.models.RecognizeDriverLicenseResponse;
import com.aliyun.tea.TeaException;
import com.aliyun.teaopenapi.models.Config;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component
public class ALiYunOSSProperties {
    //    访问域名地址
    @Value("${spring.cloud.alicloud.oss.endpoint}")
    private String endpoint;

    //    访问账号
    @Value("${spring.cloud.alicloud.access-key}")
    private String accessKeyId;

    //    访问密钥
    @Value("${spring.cloud.alicloud.secret-key}")
    private String accessKeySecret;

    //    oss存储空间名称
    @Value("${bucketName}")
    private String bucketName;

    //    oss文件上传路径
    @Value("${oss-img-path}")
    private String imgPath;

}
